package com.haoran.dwz.domain.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Table(name = "t_system_param")
@Entity
public class SystemParam extends AbstractEntity {
	public static final String SYS_CREATE_DATE_KEY   = "system_create_date";
	public static final String SYS_LASTSTART_DATE_KEY= "system_upgrade_date";
	
	public static SystemParam SYS_CREATE_DATE = new SystemParam(SYS_CREATE_DATE_KEY,"系统初始化时间");
	public static SystemParam SYS_LASTSTART_DATE = new SystemParam(SYS_LASTSTART_DATE_KEY,"系统最近更新时间");

	private static final long serialVersionUID = -5248288870584319787L;
	
	public SystemParam(String paramKey, String paramDesc) {
		this.paramKey = paramKey;
		this.paramDesc = paramDesc;
	}

	public SystemParam() {
	}

	@Column(unique = true)
	private String paramKey;
	
	private String paramValue;
	
	private String paramDesc;

	public String getParamKey() {
		return paramKey;
	}

	public SystemParam setParamKey(String paramKey) {
		this.paramKey = paramKey;
		return this;
	}

	public String getParamValue() {
		return paramValue;
	}

	public SystemParam setParamValue(String paramValue) {
		this.paramValue = paramValue;
		return this;
	}

	public String getParamDesc() {
		return paramDesc;
	}

	public SystemParam setParamDesc(String paramDesc) {
		this.paramDesc = paramDesc;
		return this;
	}
	
	
	
}
